#include <stdio.h>
int main()
{
    int a = 20, count = 0, count2 = 0;
    double sum = 0;
    int arr1[20];
    for (int i = 0; i < a; i++)
    {
        scanf("%d", &arr1[i]);
    }
    for (int i = 0; i < 20; i++)
    {
        if (arr1[i] < 0)
        {
            count++;
        }
        if (arr1[i] > 0)
        {
            sum += arr1[i];
            count2++;
        }
    }
    double sum1 = sum / count2;
    printf("%d\n%.2f\n", count, sum1);
    return 0;
}
